<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{{title}}</title>
    <link rel="stylesheet" href="/stylesheets/style.css">
</head>
<body>
<div class="auth main">
    <div class="title"><b>申请授权</b></div>

    {{#if app}}
    <form method="post" class="login">

        <div class="name">应用：<b>{{app.name}}</b></div>

        <br><br>

        <table border="0">
            <tr>
                <td align="right" width="80">用户名：</td>
                <td><input type="text" name="name"/></td>
            </tr>
            <tr>
                <td align="right">密码：</td>
                <td><input type="password" name="password" value="123456"/></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td><input type="submit" value="确认授权"/></td>
            </tr>
        </table>
        {{#if success}}
            <div class="success">{{success}}</div>
        {{/if}}
        {{#if error}}
            <div class="error">{{error}}</div>
        {{/if}}
    </form>
    {{else}}
        <div class="error">应用不存在</div>
    {{/if}}
</div>
</body>
</html>